Skip to content

Fix pipe historical extraction when device metadata is unavailable - #18541

Merged
jt2594838 merged 1 commit into
apache:masterfrom
Caideyipi:fix-pipe-historical-device-read
Aug 31, 2026
Merged

Fix pipe historical extraction when device metadata is unavailable#18541
jt2594838 merged 1 commit into
apache:masterfrom
Caideyipi:fix-pipe-historical-device-read

Conversation

@Caideyipi

@Caideyipi Caideyipi commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Problem

When a historical TsFile's .resource file is missing or unreadable, TsFileResource.getDevices() can throw a RuntimeException. The historical pipe source only caught IOException, so the file was skipped and the pipe could remain blocked waiting for historical extraction to complete.

Solution

Treat runtime failures while reading device metadata the same as I/O failures: log the error and continue extracting the TsFile because it may match the configured pattern.

Tests

  • Manually compiled the changed production and test classes with javac.
  • Ran PipeHistoricalDataRegionTsFileAndDeletionSourceTest: 20 tests passed.
  • Added coverage for a missing .tsfile.resource with FileTimeIndex.

@jt2594838
jt2594838 merged commit 6083376 into apache:master Aug 31, 2026
36 of 37 checks passed
@jt2594838
jt2594838 deleted the fix-pipe-historical-device-read branch August 31, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants